package com.team6.cet.serviceimpl;
import java.util.List;  

import org.springframework.beans.factory.annotation.Autowired;  
import org.springframework.stereotype.Service;  
import org.springframework.transaction.annotation.Transactional;

import com.team6.cet.entity.Userenrollment;
import com.team6.cet.service.UserenrollmentService;
import com.team6.cet.mapper.UserenrollmentMapper;
  
@Service  
public class UserenrollmentServiceimpl implements UserenrollmentService{  
  
    @Autowired  
    private UserenrollmentMapper uMapper;

	@Override
	public List<Userenrollment> findUserenrollment() {
		// TODO Auto-generated method stub
		return  uMapper.findUserenrollment();
	}

	@Override
	public Userenrollment findById(Integer Id) {
		// TODO Auto-generated method stub
		return uMapper.findById(Id);
		
	}

	@Override
	public int delUserenrollment(Integer id) {
		// TODO Auto-generated method stub
		return uMapper.delUserenrollment(id);
	}

	@Override
	public int insertUserenrollment(Userenrollment userenrollment) {
		// TODO Auto-generated method stub
		return uMapper.insertUserenrollment(userenrollment);
	}

	@Override
	public Userenrollment findByidNum(String idNum) {
		// TODO Auto-generated method stub
		return uMapper.findByidNum(idNum);
	}

	@Override
	public int editUserenrollment(Userenrollment userenrollment) {
		// TODO Auto-generated method stub
		return uMapper.editUserenrollment(userenrollment);
	}  
  
 
}  
